<script setup lang="ts">
import { ref } from "vue";
import CounterComp from "./components/CounterComp.vue";

const count = ref<number>(0);
const title = ref("计算器");

// const change = (v: number) => { 
//   count.value = v;
// }
</script>

<template>
  <div>
    <!-- <CounterComp :count="count" :title="title" @change="change"/> -->
    <CounterComp v-model:count="count" v-model:title="title"/>
  </div>
  
</template>
